package org.smoke.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @author hezhiyu on 14-9-28.
 */
public class NormUtil {


    public static Boolean isEmailNormalized(String email) {
        boolean tag = true;
        final String pattern1 = "^[a-zA-Z0-9\\._-]+@([a-zA-Z0-9_-]+\\.)+([a-zA-Z]{2,3})$";
        final Pattern pattern = Pattern.compile(pattern1);
        final Matcher mat = pattern.matcher(email);
        if (!mat.find()) {
            tag = false;
        }
        return tag;

    }
}
